package com.atguigu.yygh.hosp.controller;

import com.atguigu.yygh.hosp.service.HospitalSetService;
import com.atguigu.yygh.model.hosp.Hospital;
import com.atguigu.yygh.model.hosp.HospitalSet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Description:
 *
 * @ author: ChiPu
 * date: 2021/11/11 12:25
 */
@RestController
@RequestMapping("/admin/hosp/hospitalSet")
public class HospitalSetController{

    @Autowired
    private HospitalSetService hospitalSetService;

    //localhost:8201/admin/hosp/hospitalSet/findAll

    //1.1 查询医院设置表所有信息
    @GetMapping("findAll")
    public List<HospitalSet> findAllHospitalSet() {
        //调service方法
        List<HospitalSet> list = hospitalSetService.list( );
        return list;
    }

}